package com.itita.ww2.web.gm;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.itita.ww2.common.WebProxy;
import com.itita.ww2.common.WebResponse;
import com.itita.ww2.web.core.AbstractHttpServlet;

/**
 * 增加玩家指挥点数
 * @author NorthLan
 *
 */
@SuppressWarnings("serial")
public class AddUserFatigue extends AbstractHttpServlet {

	@Override
	protected String handleRequest(WebProxy webProxy, HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		int uid = Integer.valueOf(req.getParameter("uid"));
		int value = Integer.valueOf(req.getParameter("value"));
		WebResponse ret = webProxy.addUserFatigue(uid, value);
		return ret.toJson();
	}

}
